home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / tool chest / development kits / hypercard related / xcmds & xfcns / alias xfcn 1.3 / aliaslab / cards.xml < prev    next >
Encoding:
Text File  |  1993-06-13  |  15.3 KB  |  467 lines

  1. card_3726.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>3726</id>
  6.     <filler1>0</filler1>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <owner>2576</owner>
  11.     <link rel="stylesheet" type="text/css" href="stylesheet_3125.css" />
  12.     <part>
  13.         <id>1</id>
  14.         <type>field</type>
  15.         <visible> <true /> </visible>
  16.         <dontWrap> <false /> </dontWrap>
  17.         <dontSearch> <false /> </dontSearch>
  18.         <sharedText> <false /> </sharedText>
  19.         <fixedLineHeight> <false /> </fixedLineHeight>
  20.         <autoTab> <false /> </autoTab>
  21.         <lockText> <true /> </lockText>
  22.         <rect>
  23.             <left>3</left>
  24.             <top>3</top>
  25.             <right>382</right>
  26.             <bottom>239</bottom>
  27.         </rect>
  28.         <style>scrolling</style>
  29.         <autoSelect> <false /> </autoSelect>
  30.         <showLines> <false /> </showLines>
  31.         <wideMargins> <false /> </wideMargins>
  32.         <multipleLines> <false /> </multipleLines>
  33.         <reservedFamily> 0 </reservedFamily>
  34.         <titleWidth>0</titleWidth>
  35.         <icon>0</icon>
  36.         <textAlign>left</textAlign>
  37.         <font>Geneva</font>
  38.         <textSize>10</textSize>
  39.         <textStyle>plain</textStyle>
  40.         <textHeight>13</textHeight>
  41.         <name></name>
  42.         <script></script>
  43.     </part>
  44.     <part>
  45.         <id>2</id>
  46.         <type>button</type>
  47.         <visible> <true /> </visible>
  48.         <reserved5> 0 </reserved5>
  49.         <reserved4> 0 </reserved4>
  50.         <reserved3> 0 </reserved3>
  51.         <reserved2> 0 </reserved2>
  52.         <reserved1> 0 </reserved1>
  53.         <enabled> <true /> </enabled>
  54.         <rect>
  55.             <left>387</left>
  56.             <top>218</top>
  57.             <right>414</right>
  58.             <bottom>239</bottom>
  59.         </rect>
  60.         <style>transparent</style>
  61.         <showName> <false /> </showName>
  62.         <highlight> <false /> </highlight>
  63.         <autoHighlight> <true /> </autoHighlight>
  64.         <sharedHighlight> <true /> </sharedHighlight>
  65.         <family>0</family>
  66.         <titleWidth>0</titleWidth>
  67.         <icon>6720</icon>
  68.         <textAlign>center</textAlign>
  69.         <font>Chicago</font>
  70.         <textSize>12</textSize>
  71.         <textStyle>plain</textStyle>
  72.         <name>New Button</name>
  73.         <script>on mouseUp
  74. go to first card
  75. end mouseUp</script>
  76.     </part>
  77.     <content>
  78.         <layer>card</layer>
  79.         <id>1</id>
  80.         <text>
  81. Form is: put Alias(Command, requiredParameter)
  82.  
  83. Commands and parameters are as follows:
  84.  
  85. put Alias("MakeAlias") into thisStackAliasRecord
  86. put Alias("MakeAlias", filePath) into fileAliasRecord
  87. put Alias("ResolveAlias", fileAliasRecord) into fileFSSpec
  88. put Alias("ResolveAliasToPath, fileAliasRecord) into filePath
  89. put Alias("GetAliasInfo", fileAliasRecord) into aliasInfo
  90.  
  91. "MakeAlias" returns an alias record.
  92.  
  93. "ResolveAlias" returns the current file location as a FSSpec.  It takes an alias record that has been returned from "MakeAlias" and resolves it into a FSSpec.  The FSSpec is returned as a string.
  94.  
  95. "ResolveAliasToPath" returns the current file location as a full path.  It takes an alias record that has been returned from "MakeAlias" and resolves it into a full path.
  96.  
  97. If the alias record points to an unmounted volume, "ResolveAlias" and "ResolveAliasToPath" will mount the volume.
  98.  
  99. "GetAliasInfo" returns the zone, server, and path for the file in the alias record.  Line 1 is the zone, line 2 is the server, and line 3 is the path.  This is the original location of the file, not necessarily the current location.  Use "ResolveAlias" or "ResolveAliasToPath" to get the current location.
  100.  
  101. In addition, the XFCN supports the use of "!" for version information and "?" for help as follows:
  102.     put Alias("!") into versionInfo
  103.     put Alias("?") into helpInfo
  104.  
  105. The following resources are required for XFCN operation:
  106.      type         ID        Name
  107.     XFCN       N/A       Alias
  108.     STR#      N/A    Alias
  109. Resource identification is by Name, ID numbers may be changed.
  110.  
  111. The following error messages may be returned from the XFCN:
  112.     Err 00 Missing STR# for Alias
  113.     Err 01 Missing command
  114.     Err 02 Command is not recognized
  115.     Err 03 Missing second parameter
  116.     Err 04 This operating system does not support the Alias Manager
  117.     Err 05 EvalExpr failed
  118.     Err 06 FSMakeFSSpec failed
  119.     Err 07 NewAlias failed
  120.     Err 08 ResolveAlias failed
  121.     Err 09 ResolveAliasFile failed
  122.     Err 10 GetAliasInfo Zone failed
  123.     Err 11 GetAliasInfo Server failed
  124.     Err 12 GetAliasInfo Volume failed
  125.     Err 13 GetAliasInfo Parent failed
  126.  
  127. This XFCN should run under System 7.0 and pre-7.0.  It's not very useful under pre-7.0, but it will run.
  128. This XFCN should also run under HyperCard 2.0 and pre-2.0.
  129. </text>
  130.     </content>
  131.     <name>Release Notes</name>
  132.     <script></script>
  133. </card>
  134.  
  135.  
  136. card_2969.xml
  137. <?xml version="1.0" encoding="utf-8" ?>
  138. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  139. <card>
  140.     <id>2969</id>
  141.     <filler1>0</filler1>
  142.     <bitmap>BMAP_2170.pbm</bitmap>
  143.     <cantDelete> <false /> </cantDelete>
  144.     <showPict> <true /> </showPict>
  145.     <dontSearch> <false /> </dontSearch>
  146.     <owner>2576</owner>
  147.     <link rel="stylesheet" type="text/css" href="stylesheet_3125.css" />
  148.     <part>
  149.         <id>1</id>
  150.         <type>field</type>
  151.         <visible> <true /> </visible>
  152.         <dontWrap> <false /> </dontWrap>
  153.         <dontSearch> <false /> </dontSearch>
  154.         <sharedText> <false /> </sharedText>
  155.         <fixedLineHeight> <false /> </fixedLineHeight>
  156.         <autoTab> <false /> </autoTab>
  157.         <lockText> <true /> </lockText>
  158.         <rect>
  159.             <left>138</left>
  160.             <top>34</top>
  161.             <right>413</right>
  162.             <bottom>169</bottom>
  163.         </rect>
  164.         <style>scrolling</style>
  165.         <autoSelect> <false /> </autoSelect>
  166.         <showLines> <false /> </showLines>
  167.         <wideMargins> <false /> </wideMargins>
  168.         <multipleLines> <false /> </multipleLines>
  169.         <reservedFamily> 0 </reservedFamily>
  170.         <titleWidth>0</titleWidth>
  171.         <icon>0</icon>
  172.         <textAlign>left</textAlign>
  173.         <font>Monaco</font>
  174.         <textSize>9</textSize>
  175.         <textStyle>plain</textStyle>
  176.         <textHeight>12</textHeight>
  177.         <name>AliasRecord</name>
  178.         <script></script>
  179.     </part>
  180.     <part>
  181.         <id>5</id>
  182.         <type>button</type>
  183.         <visible> <true /> </visible>
  184.         <reserved5> 0 </reserved5>
  185.         <reserved4> 0 </reserved4>
  186.         <reserved3> 0 </reserved3>
  187.         <reserved2> 0 </reserved2>
  188.         <reserved1> 0 </reserved1>
  189.         <enabled> <true /> </enabled>
  190.         <rect>
  191.             <left>4</left>
  192.             <top>82</top>
  193.             <right>134</right>
  194.             <bottom>104</bottom>
  195.         </rect>
  196.         <style>shadow</style>
  197.         <showName> <true /> </showName>
  198.         <highlight> <false /> </highlight>
  199.         <autoHighlight> <true /> </autoHighlight>
  200.         <sharedHighlight> <true /> </sharedHighlight>
  201.         <family>0</family>
  202.         <titleWidth>0</titleWidth>
  203.         <icon>0</icon>
  204.         <textAlign>center</textAlign>
  205.         <font>Chicago</font>
  206.         <textSize>12</textSize>
  207.         <textStyle>plain</textStyle>
  208.         <name>Make Any Alias</name>
  209.         <script>on mouseUp
  210. answer file "Alias for which file?"
  211. put it into myFile
  212. put myFile into cd fld "pathInfo"
  213. if it is not empty then
  214. put Alias("MakeAlias", myFile) into cd fld "AliasRecord"
  215. end if
  216. put empty into cd fld "FileSpecInfo"
  217. put empty into cd fld "AliasInfo"
  218. end mouseUp</script>
  219.     </part>
  220.     <part>
  221.         <id>6</id>
  222.         <type>button</type>
  223.         <visible> <true /> </visible>
  224.         <reserved5> 0 </reserved5>
  225.         <reserved4> 0 </reserved4>
  226.         <reserved3> 0 </reserved3>
  227.         <reserved2> 0 </reserved2>
  228.         <reserved1> 0 </reserved1>
  229.         <enabled> <true /> </enabled>
  230.         <rect>
  231.             <left>4</left>
  232.             <top>136</top>
  233.             <right>134</right>
  234.             <bottom>158</bottom>
  235.         </rect>
  236.         <style>shadow</style>
  237.         <showName> <true /> </showName>
  238.         <highlight> <false /> </highlight>
  239.         <autoHighlight> <true /> </autoHighlight>
  240.         <sharedHighlight> <true /> </sharedHighlight>
  241.         <family>0</family>
  242.         <titleWidth>0</titleWidth>
  243.         <icon>0</icon>
  244.         <textAlign>center</textAlign>
  245.         <font>Chicago</font>
  246.         <textSize>12</textSize>
  247.         <textStyle>plain</textStyle>
  248.         <name>Resolve To FSSpec</name>
  249.         <script>on mouseUp
  250. put empty into cd fld "FileSpecInfo" -- flash
  251. put Alias("ResolveAlias", cd fld "AliasRecord")¬¨
  252. into cd fld "FileSpecInfo"
  253. end mouseUp</script>
  254.     </part>
  255.     <part>
  256.         <id>7</id>
  257.         <type>field</type>
  258.         <visible> <true /> </visible>
  259.         <dontWrap> <false /> </dontWrap>
  260.         <dontSearch> <false /> </dontSearch>
  261.         <sharedText> <false /> </sharedText>
  262.         <fixedLineHeight> <false /> </fixedLineHeight>
  263.         <autoTab> <false /> </autoTab>
  264.         <lockText> <true /> </lockText>
  265.         <rect>
  266.             <left>138</left>
  267.             <top>213</top>
  268.             <right>412</right>
  269.             <bottom>228</bottom>
  270.         </rect>
  271.         <style>rectangle</style>
  272.         <autoSelect> <false /> </autoSelect>
  273.         <showLines> <false /> </showLines>
  274.         <wideMargins> <false /> </wideMargins>
  275.         <multipleLines> <false /> </multipleLines>
  276.         <reservedFamily> 0 </reservedFamily>
  277.         <titleWidth>0</titleWidth>
  278.         <icon>0</icon>
  279.         <textAlign>left</textAlign>
  280.         <font>Geneva</font>
  281.         <textSize>10</textSize>
  282.         <textStyle>plain</textStyle>
  283.         <textHeight>13</textHeight>
  284.         <name>FileSpecInfo</name>
  285.         <script></script>
  286.     </part>
  287.     <part>
  288.         <id>9</id>
  289.         <type>button</type>
  290.         <visible> <true /> </visible>
  291.         <reserved5> 0 </reserved5>
  292.         <reserved4> 0 </reserved4>
  293.         <reserved3> 0 </reserved3>
  294.         <reserved2> 0 </reserved2>
  295.         <reserved1> 0 </reserved1>
  296.         <enabled> <true /> </enabled>
  297.         <rect>
  298.             <left>4</left>
  299.             <top>54</top>
  300.             <right>134</right>
  301.             <bottom>76</bottom>
  302.         </rect>
  303.         <style>shadow</style>
  304.         <showName> <true /> </showName>
  305.         <highlight> <false /> </highlight>
  306.         <autoHighlight> <true /> </autoHighlight>
  307.         <sharedHighlight> <true /> </sharedHighlight>
  308.         <family>0</family>
  309.         <titleWidth>0</titleWidth>
  310.         <icon>0</icon>
  311.         <textAlign>center</textAlign>
  312.         <font>Chicago</font>
  313.         <textSize>12</textSize>
  314.         <textStyle>plain</textStyle>
  315.         <name>Make Stack's Alias</name>
  316.         <script>on mouseUp
  317. put the long name of this stack into cd fld "pathInfo"
  318. put Alias("MakeAlias") into cd fld "AliasRecord"
  319. put empty into cd fld "FileSpecInfo"
  320. put empty into cd fld "AliasInfo"
  321. end mouseUp</script>
  322.     </part>
  323.     <part>
  324.         <id>11</id>
  325.         <type>field</type>
  326.         <visible> <true /> </visible>
  327.         <dontWrap> <false /> </dontWrap>
  328.         <dontSearch> <false /> </dontSearch>
  329.         <sharedText> <false /> </sharedText>
  330.         <fixedLineHeight> <false /> </fixedLineHeight>
  331.         <autoTab> <false /> </autoTab>
  332.         <lockText> <true /> </lockText>
  333.         <rect>
  334.             <left>138</left>
  335.             <top>3</top>
  336.             <right>412</right>
  337.             <bottom>31</bottom>
  338.         </rect>
  339.         <style>rectangle</style>
  340.         <autoSelect> <false /> </autoSelect>
  341.         <showLines> <false /> </showLines>
  342.         <wideMargins> <false /> </wideMargins>
  343.         <multipleLines> <false /> </multipleLines>
  344.         <reservedFamily> 0 </reservedFamily>
  345.         <titleWidth>0</titleWidth>
  346.         <icon>0</icon>
  347.         <textAlign>left</textAlign>
  348.         <font>Geneva</font>
  349.         <textSize>10</textSize>
  350.         <textStyle>plain</textStyle>
  351.         <textHeight>13</textHeight>
  352.         <name>PathInfo</name>
  353.         <script></script>
  354.     </part>
  355.     <part>
  356.         <id>12</id>
  357.         <type>field</type>
  358.         <visible> <true /> </visible>
  359.         <dontWrap> <false /> </dontWrap>
  360.         <dontSearch> <false /> </dontSearch>
  361.         <sharedText> <false /> </sharedText>
  362.         <fixedLineHeight> <false /> </fixedLineHeight>
  363.         <autoTab> <false /> </autoTab>
  364.         <lockText> <true /> </lockText>
  365.         <rect>
  366.             <left>138</left>
  367.             <top>170</top>
  368.             <right>413</right>
  369.             <bottom>210</bottom>
  370.         </rect>
  371.         <style>scrolling</style>
  372.         <autoSelect> <false /> </autoSelect>
  373.         <showLines> <false /> </showLines>
  374.         <wideMargins> <false /> </wideMargins>
  375.         <multipleLines> <false /> </multipleLines>
  376.         <reservedFamily> 0 </reservedFamily>
  377.         <titleWidth>0</titleWidth>
  378.         <icon>0</icon>
  379.         <textAlign>left</textAlign>
  380.         <font>Geneva</font>
  381.         <textSize>10</textSize>
  382.         <textStyle>plain</textStyle>
  383.         <textHeight>13</textHeight>
  384.         <name>AliasInfo</name>
  385.         <script></script>
  386.     </part>
  387.     <part>
  388.         <id>13</id>
  389.         <type>button</type>
  390.         <visible> <true /> </visible>
  391.         <reserved5> 0 </reserved5>
  392.         <reserved4> 0 </reserved4>
  393.         <reserved3> 0 </reserved3>
  394.         <reserved2> 0 </reserved2>
  395.         <reserved1> 0 </reserved1>
  396.         <enabled> <true /> </enabled>
  397.         <rect>
  398.             <left>4</left>
  399.             <top>109</top>
  400.             <right>134</right>
  401.             <bottom>131</bottom>
  402.         </rect>
  403.         <style>shadow</style>
  404.         <showName> <true /> </showName>
  405.         <highlight> <false /> </highlight>
  406.         <autoHighlight> <true /> </autoHighlight>
  407.         <sharedHighlight> <true /> </sharedHighlight>
  408.         <family>0</family>
  409.         <titleWidth>0</titleWidth>
  410.         <icon>0</icon>
  411.         <textAlign>center</textAlign>
  412.         <font>Chicago</font>
  413.         <textSize>12</textSize>
  414.         <textStyle>plain</textStyle>
  415.         <name>Get Alias Info</name>
  416.         <script>on mouseUp
  417. put Alias("GetAliasInfo",  cd fld "AliasRecord")¬¨
  418. into cd fld "AliasInfo"
  419. end mouseUp</script>
  420.     </part>
  421.     <part>
  422.         <id>14</id>
  423.         <type>button</type>
  424.         <visible> <true /> </visible>
  425.         <reserved5> 0 </reserved5>
  426.         <reserved4> 0 </reserved4>
  427.         <reserved3> 0 </reserved3>
  428.         <reserved2> 0 </reserved2>
  429.         <reserved1> 0 </reserved1>
  430.         <enabled> <true /> </enabled>
  431.         <rect>
  432.             <left>2</left>
  433.             <top>221</top>
  434.             <right>78</right>
  435.             <bottom>238</bottom>
  436.         </rect>
  437.         <style>shadow</style>
  438.         <showName> <true /> </showName>
  439.         <highlight> <false /> </highlight>
  440.         <autoHighlight> <true /> </autoHighlight>
  441.         <sharedHighlight> <true /> </sharedHighlight>
  442.         <family>0</family>
  443.         <titleWidth>0</titleWidth>
  444.         <icon>0</icon>
  445.         <textAlign>center</textAlign>
  446.         <font>Geneva</font>
  447.         <textSize>10</textSize>
  448.         <textStyle>bold</textStyle>
  449.         <name>Who Am I?</name>
  450.         <script>on mouseUp
  451. put Alias("!") into message box
  452. end mouseUp</script>
  453.     </part>
  454.     <part>
  455.         <id>15</id>
  456.         <type>button</type>
  457.         <visible> <true /> </visible>
  458.         <reserved5> 0 </reserved5>
  459.         <reserved4> 0 </reserved4>
  460.         <reserved3> 0 </reserved3>
  461.         <reserved2> 0 </reserved2>
  462.         <reserved1> 0 </reserved1>
  463.         <enabled> <true /> </enabled>
  464.         <rect>
  465.             <left>2</left>
  466.             <top>201</top>
  467.             <right>78</right>
  468.             <bottom>218</bottom>
  469.         </rect>
  470.         <style>shadow</style>
  471.         <showName> <true /> </showName>
  472.         <highlight> <false /> </highlight>
  473.         <autoHighlight> <true /> </autoHighlight>
  474.         <sharedHighlight> <true /> </sharedHighlight>
  475.         <family>0</family>
  476.         <titleWidth>0</titleWidth>
  477.         <icon>0</icon>
  478.         <textAlign>center</textAlign>
  479.         <font>Geneva</font>
  480.         <textSize>10</textSize>
  481.         <textStyle>bold</textStyle>
  482.         <name>What Am I?</name>
  483.         <script>on mouseUp
  484. go to card "Release Notes"
  485. end mouseUp</script>
  486.     </part>
  487.     <part>
  488.         <id>16</id>
  489.         <type>button</type>
  490.         <visible> <true /> </visible>
  491.         <reserved5> 0 </reserved5>
  492.         <reserved4> 0 </reserved4>
  493.         <reserved3> 0 </reserved3>
  494.         <reserved2> 0 </reserved2>
  495.         <reserved1> 0 </reserved1>
  496.         <enabled> <true /> </enabled>
  497.         <rect>
  498.             <left>4</left>
  499.             <top>164</top>
  500.             <right>134</right>
  501.             <bottom>186</bottom>
  502.         </rect>
  503.         <style>shadow</style>
  504.         <showName> <true /> </showName>
  505.         <highlight> <false /> </highlight>
  506.         <autoHighlight> <true /> </autoHighlight>
  507.         <sharedHighlight> <true /> </sharedHighlight>
  508.         <family>0</family>
  509.         <titleWidth>0</titleWidth>
  510.         <icon>0</icon>
  511.         <textAlign>center</textAlign>
  512.         <font>Chicago</font>
  513.         <textSize>12</textSize>
  514.         <textStyle>plain</textStyle>
  515.         <name>Resolve To Path</name>
  516.         <script>on mouseUp
  517. put empty into cd fld "AliasInfo" -- flash
  518. put Alias("ResolveAliasToPath", cd fld "AliasRecord")¬¨
  519. into cd fld "AliasInfo"
  520. end mouseUp</script>
  521.     </part>
  522.     <content>
  523.         <layer>card</layer>
  524.         <id>1</id>
  525.         <text>0000000000E2000200000646756E50414B000000000000000000000000000000000000000000A70CA13E424400050000063E08616C6961734C6162000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000069DA34CBB7E5354414B57494C44FFFFFFFF0000000200000000000000000000000000000005416C69617300000100080000063E0000063D0002001B46756E50414B3A58434D44733A416C6961733A616C6961734C6162000006000E2E52656D44726976657220563232FFFF0000</text>
  526.     </content>
  527.     <content>
  528.         <layer>card</layer>
  529.         <id>11</id>
  530.         <text>stack "FunPAK:XCMDs:Alias:aliasLab"</text>
  531.     </content>
  532.     <content>
  533.         <layer>card</layer>
  534.         <id>7</id>
  535.         <text>-6,1598,aliasLab</text>
  536.     </content>
  537.     <content>
  538.         <layer>card</layer>
  539.         <id>12</id>
  540.         <text>FunPAK:XCMDs:Alias:aliasLab</text>
  541.     </content>
  542.     <name></name>
  543.     <script></script>
  544. </card>
  545.  
  546.  
  547.